/**
 * 
 */
package com.taobao.wolfwolf.console;

import com.taobao.wolfwolf.util.JSONArray;
import com.taobao.wolfwolf.util.JSONObject;


/**
 * @author Tux
 *
 * 创建时间: 2011-6-7 上午10:46:02
 */
public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JSONObject jo = new JSONObject();
		
		jo.put("UserName", "xte");
		
		JSONObject contact = new JSONObject();
		
		
		contact.put("name", "sdfd");
		contact.put("phone", "324234");
		
		JSONArray addresses = new JSONArray();
		JSONObject address = new JSONObject();
		JSONObject address1 = new JSONObject();
		
		
		address.put("address", "sdfwewrwewwrwr");
		address1.put("address", "sdfwewrwewwrwr");
		
		addresses.add(address);
		addresses.add(address1);
		
		contact.put("addresses", addresses);
		
		jo.put("contact", contact);
		
		System.out.println(jo.toJSONString());
		
		
		
	}

}
